<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>test</title>
    <script src="../../../js/jquery-1.7.2.min.js"></script>
</head>
<body>
<a class="inline-block" href="javascript:void(0)" onclick="apply()">
    <span class="reward-btn">抢红包</span>
</a>
</body>
<script>
    function apply() {
        var max = 3000;
        for(var i =1; i <=max; i++){
            $.ajax({
                url:"/userRedPacket/grapRedPacket?redPackageId=1&userId="+i
            })
        }
    }

</script>
</html>